package com.dzl.exchange.dao;

import com.dzl.exchange.pojo.WelfareExchange;
import com.dzl.exchange.pojo.query.ExchangeGroupQuery;
import com.dzl.exchange.pojo.vo.ExchangeGroupVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.dzl.base.mapper.BaseMapper;

import java.util.List;

/**
 * 兑换券组表(WelfareExchangeSecretGroup)表数据库访问层
 * @author caobucao
 * @date 2021-07-09 17:26:02
 */
@Repository
public interface WelfareExchangeMapper extends BaseMapper<WelfareExchange> {

    /**
     * 分页查询兑换券组列表
     * @date 2021/7/9 17:40
     * @author caobucao
     * @param query 查询条件
     * @return java.util.List<com.dzl.exchangesecretgroup.pojo.vo.ExchangeGroupVo>
     */
    List<ExchangeGroupVo> selectExchangeGroupVoListPage(ExchangeGroupQuery query);

    /**
     * 查询某天新增的兑换券数量
     * @date 2021/7/12 17:00
     * @author caobucao
     * @param todayStart 开始时间
     * @param todayEnd 结束时间
     * @return java.lang.Integer 福利卡数量
     */
    Integer selectCountByCreateTime(@Param("todayStart") String todayStart, @Param("todayEnd") String todayEnd);
}
